package com.zdw.oauth.dto;

import com.zdw.common.parent.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * <p>
 *
 * </p>
 *
 * @author 卓德文
 * @since 2023-01-04
 */
@Getter
@Setter
@ApiModel(value = "UserDto对象", description = "")
public class UserUpdDto extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键")
    @NotNull(message = "请选择用户")
    private Integer id;

    @ApiModelProperty("账号")
    @NotBlank(message = "账号不能为空")
    private String account;

    @ApiModelProperty("名称")
    @NotBlank(message = "名称不能为空")
    private String name;

    @ApiModelProperty("电话")
    @NotBlank(message = "电话不能为空")
    private String phone;

    @ApiModelProperty("地址")
    private String address;

    @ApiModelProperty("状态(0:启用;1:禁用)")
    @NotNull(message = "请选择状态")
    private Integer state;

    /*@ApiModelProperty("密码")
    @NotBlank
    private String password;*/

}
